package net.lahuobao.enums.mall.admin;

/**
 * Created by clark on 2016/9/19 0019.
 */
public enum EMallShopSettlementAuditStatus {
    NotApply {
        public int getStatus() {
            return 0;
        }
        public String getName() {
            return "未申请";
        }
    },
    Appling {
        public int getStatus() {
            return 1;
        }

        public String getName() {
            return "审核中";
        }
    },
    AgreeApplyRefuse {
        public int getStatus() {
            return 2;
        }

        public String getName() {
            return "已通过";
        }
    };


    public static String valueOf(int value) {
        switch (value) {
            case 0:
                return EMallShopSettlementAuditStatus.NotApply.getName();
            case 1:
                return EMallShopSettlementAuditStatus.Appling.getName();
            case 2:
                return EMallShopSettlementAuditStatus.AgreeApplyRefuse.getName();
        }
        return null;
    }

    public static EMallShopSettlementAuditStatus getMallShopSettlementAuditStatus(int value) {
        switch (value) {
            case 0:
                return EMallShopSettlementAuditStatus.NotApply;
            case 1:
                return EMallShopSettlementAuditStatus.Appling;
            case 2:
                return EMallShopSettlementAuditStatus.AgreeApplyRefuse;
        }
        return null;
    }

    public abstract int getStatus();

    public abstract String getName();
}
